<?php 
/**
 *   Joomdiet - components/views/energeticspend/tmpl/default.php
 *   Author: Juan Dapena Paz (juan@bittingbits.com)
 *   Copyright (C) 2010 Bitting Bits S.L.
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('_JEXEC') or die('Restricted access'); ?>
<div id="joomdiet_container">
<h1><?php echo JText::_('COM_JOOMDIET_ENERGETIC_SPEND_TITLE'); ?></h1>
<div id="sectionmainarea">
    <form id="form1" method="post" action="<?php echo JRoute::_('index.php?option=com_joomdiet'); ?>">
        <h2><?php echo JText::_('COM_JOOMDIET_YOUR_DATA'); ?></h2>
        <div id="yourdataarea">
            <span id="genderselectorarea">
                <label for="genderselector"><?php echo JText::_('COM_JOOMDIET_GENDER'); ?></label>
                <select name="genderselector" id="genderselector">
                    <option value="male"><?php echo JText::_('COM_JOOMDIET_MALE'); ?></option>
                    <option value="female"><?php echo JText::_('COM_JOOMDIET_FEMALE'); ?></option>
                </select>
            </span>
            <span id="weightfieldarea">
                <label for="weightfield"><?php echo JText::_('COM_JOOMDIET_WEIGHT'); ?></label>
                <input type="text" name="weightfield" id="weightfield" value="" />
                <?php echo JText::_('COM_JOOMDIET_KG'); ?> 
                <?php echo JText::_('COM_JOOMDIET_WEIGHT_EXAMPLE'); ?>
            </span>
        </div>
        <h2><?php echo JText::_('COM_JOOMDIET_SELECT_ACTIVITIES'); ?></h2>
        <div id="selectactivitiesarea">
            <div id="selectorheader">
                <span id="categoryselectorarea">
                    <label for="categoryselector"><?php echo JText::_('COM_JOOMDIET_CATEGORY_SELECTOR'); ?></label>
                    <select name="categoryselector" id="categoryselector">
                        <?php foreach ($this->category_tags as $i => $tag) { ?>
                            <option value="<?php echo $i; ?>">
                                <?php echo JText::_($tag); ?>
                            </option>
                        <?php } ?>
                    </select>
                </span>
                <span id="activityselectorarea">
                    <label for="activityselector"><?php echo JText::_('COM_JOOMDIET_ACTIVITY_SELECTOR'); ?></label>
                    <select name="activityselector" id="activityselector">
                        <?php foreach ($this->basic_activities as $activity) { ?>
                            <option value="<?php echo $activity->id; ?>">
                                <?php echo $activity->name; ?>
                            </option>
                        <?php } ?>
                    </select>
                </span>
                <input type="button" id="addbutton" value="<?php echo JText::_('COM_JOOMDIET_ADD_BUTTON'); ?>"/>
            </div>
            <table id="resultsbody">
                
            </table>
        </div>
        
        <input name="controller" type="hidden" id="controller" value="energeticspend" />
        <input name="task" type="hidden" id="task" value="loadactivities" />
        <input name="category_id" type="hidden" id="category_id" value="0" />
        <input name="format" type="hidden" id="format" value="0" />
        <input name="physicalactivity_id" type="hidden" id="physicalactivity_id" value="0" />
    </form>
</div>
</div>
